# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-azure-mgmt-sql
_pkgname=azure-mgmt-sql
pkgver=3.0.1
pkgrel=6
pkgdesc='Microsoft Azure SQL Management Client Library for Python.'
arch=('any')
url='https://pypi.org/project/azure-mgmt-sql/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
sha512sums=('95510b6b17ff98a9e6731cb1f9291226470c8ffb8f92c39c94475a0668792ecb22aeaa871542e5180ed21b0973d052867b9e647fdcad9f3c60799388a334bf33')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

